package com.xm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 田顺琪
 * @Date 2024-01-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommodityWarehouse {
    private Integer commodityWarehouseId;
    private Integer detailsInventory;
    private Integer purchaseLimit;
    private Integer warehouseId;
    private Integer commodityId;
    private Commodity commodity;

    public CommodityWarehouse(Integer detailsInventory, Integer purchaseLimit) {
        this.detailsInventory = detailsInventory;
        this.purchaseLimit = purchaseLimit;
    }

    public CommodityWarehouse(Integer detailsInventory) {
        this.detailsInventory = detailsInventory;
    }

    public CommodityWarehouse(Integer detailsInventory, Integer purchaseLimit, Integer warehouseId, Integer commodityId, Commodity commodity) {
        this.detailsInventory = detailsInventory;
        this.purchaseLimit = purchaseLimit;
        this.warehouseId = warehouseId;
        this.commodityId = commodityId;
        this.commodity = commodity;
    }
}
